package com.wego.common.formatter;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
/**
 * @className: LocalDateTimeFormatter
 * @description: LocalDateTime转换器，自定义jsp标签使用
 * @author: Li Chuanwei
 * @date: 2023/07/09 20:56
 * @Company: Copyright [日期] by [作者或个人]
 **/
public class LocalDateTimeFormatter {
    public static String formatLocalDateTime(LocalDateTime localDateTime, String pattern) {
        return localDateTime.format(DateTimeFormatter.ofPattern(pattern));
    }
}
